package com.jiji.miaosha.mapper;

import com.jiji.miaosha.entity.Order;
import com.jiji.miaosha.mapper.provide.OrderMapperProvider;
import org.apache.ibatis.annotations.*;

@Mapper
public interface OrderMapper {

    @Select("select * from order_info where user_id=#{userId}")
    Order queryOrderByUserId(@Param("userId") Integer userId);

    @InsertProvider(type = OrderMapperProvider.class,method = "insertOrder")
    int insertOrder(@Param("order") Order order);
}
